import React from 'react'

// 路由模板加载标签
import { Outlet } from 'react-router-dom'

import Addguest from '@/components/Guest/Addguest'
import Index from '@/components/Guest/Index'
import Editguest from '@/components/Guest/Editguest'

// 路由列表
const list = [
    {
        path: 'addguest',
        component: Addguest,
        auth: true
    },
    {
        path: 'index',
        component: Index,
        auth: true
    },
    {
        path: 'editguest',
        component: Editguest,
        auth: true
    },
    
]

const Layout = () =>  <Outlet />

const RouterList = [
    {
        path: '/guest',
        component: Layout,
        children: list
    }
]


export default RouterList;